
/**
** \file       read_my_line.h
**
** \brief      function about readline is here
**
** \authors    Bem M'rad Hanna, Boillot Ulysse, De Oliveira Guillaume,
**             Laterem Hamza and Nguyen Viet Dung
**
** \version    1.0
**
** \date       28 November 2013
**
*/

#ifndef READ_MY_LINE_H_
# define READ_MY_LINE_H_

# include <stdlib.h>
# include <unistd.h>

# include "../exec_cmdline.h"
# include "../options_parser.h"

/**
** \fn         exec_readline(int       fd,
**                           char     **argv,
**                           s_cmd    **cmd,
**                           char     **envp)
**
** \brief      this function handle the readline
**
** \param      int     fd
** \param      char    **argv
** \param      s_cmd   *cmd
** \param      char    **envp
**
** \return     return 0 on succeed, 1 else
**
*/

int             exec_readline(char      **argv,
                              s_cmd     *cmd,
                              char      **envp);

#endif /* !READ_MY_LINE_H_ */
